﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace OfficeInstaller.Configuration
{
	public class OfficeInstallerConfiguration : ConfigurationSection
	{
		[ConfigurationProperty("activationServer", IsRequired = false)]
		public string ActivationServer
		{
			get { return (string)this["activationServer"]; }
			set { this["activationServer"] = value; }
		}

		[ConfigurationProperty("updatePath", IsRequired = false)]
		public string UpdatePath
		{
			get { return (string)this["updatePath"]; }
			set { this["updatePath"] = value; }
		}

		[ConfigurationProperty("products")]
		public ConfigurationElementCollection<ProductConfigurationElement> Products
		{
			get { return (ConfigurationElementCollection<ProductConfigurationElement>)this["products"]; }
		}

		[ConfigurationProperty("languages")]
		public LanguagesConfigurationElement Languages
		{
			get { return (LanguagesConfigurationElement)this["languages"]; }
		}
	}
}
